package com.atqh.srrt.chicken.service.impl;

import com.atqh.srrt.chicken.domain.qaSelect.Question;
import com.atqh.srrt.chicken.domain.qaSelect.Select;
import com.atqh.srrt.chicken.mapper.qaSelectMapper.QuestionMapper;
import com.atqh.srrt.chicken.mapper.qaSelectMapper.SelectMapper;
import com.atqh.srrt.chicken.service.QuestionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class QuestionServiceImpl extends ServiceImpl<SelectMapper, Select> implements QuestionService {
    @Resource
    private QuestionMapper questionMapper;

    @Override
    public List<Question> getQuestionnaire() {
        return questionMapper.selectAll();
    }
}
